package com.xxg.base.quartz;//package com.xxg.base.quartz;
//
//import org.quartz.Job;
//import org.quartz.JobDataMap;
//import org.quartz.JobExecutionContext;
//import org.quartz.JobExecutionException;
//import org.quartz.StatefulJob;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//public class BaseTask  implements StatefulJob{
//    private static final Logger LOGGER=LoggerFactory.getLogger(BaseTask.class);
//
//    @Override
//    public void execute(JobExecutionContext context)
//            throws JobExecutionException {
//        // 取得任务的上下文信息
//        JobDataMap map = context.getJobDetail().getJobDataMap();
//        try{
//            Job job=(Job)map.get("job");
//            job.execute(context);
//        }catch(Exception ex){
//            map.put("message", ex.getMessage());
//            LOGGER.error("自动任务执行失败",ex);
//        }
//    }
//}
